﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditCategory.ascx.cs" Inherits="Admin.Controls.Category.EditCategory" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div class="section">
	<div class="title_wrapper">
		<h2><asp:Literal ID="ltrCatName" runat="server"></asp:Literal></h2>
	</div>
	<!--[if !IE]>start section inner <![endif]-->
	<div class="section_inner">
	
	<!--[if !IE]>start forms<![endif]-->
	<div class="search_form general_form">
		<!--[if !IE]>start fieldset<![endif]-->
		<fieldset>
			<!--[if !IE]>start forms<![endif]-->
			<div class="forms">
			
			<!--[if !IE]>start row<![endif]-->
			<div class="row">
				<label>Ảnh đại diện:</label>
				<div class="inputs">
					<span class="input_wrapper"><asp:TextBox ID="txtNewsPhoto" runat="server" CssClass="text"></asp:TextBox></span>
					<span class="button blue_button search_button"><span><span><em><span class="button_ico"></span>Chọn ảnh</em></span></span><asp:Button ID="btChoosePhoto" Text="Chọn ảnh" OnClientClick="OpenFileExplorerDialog1(); return false;" runat="server" /></span>
				</div>
			</div>
			<!--[if !IE]>end row<![endif]-->
			
			<!--[if !IE]>start row<![endif]-->
			<div class="row">
				<div class="inputs">
					<span class="button orange_button"><span><span>Lưu</span></span><asp:Button runat="server" ID="btSave" OnClick="btSave_Clicked" /></span>
				</div>
			</div>
			<!--[if !IE]>end row<![endif]-->
			
			<!--[if !IE]>start row<![endif]-->
			<div class="row">
				<div class="inputs">
					Kích cỡ chuẩn: 252px &times; 296px
				</div>
			</div>
			<!--[if !IE]>end row<![endif]-->
			
			</div>
			<!--[if !IE]>end forms<![endif]-->
		</fieldset>
		<!--[if !IE]>end fieldset<![endif]-->
	</div>
	<!--[if !IE]>end forms<![endif]-->
</div>
<!--[if !IE]>end section inner<![endif]-->


</div>
<!--[if !IE]>end section<![endif]-->
<telerik:RadWindow runat="server" Width="850px" Height="560px" VisibleStatusbar="false"
        ShowContentDuringLoad="false" NavigateUrl="~/FilePicker1.aspx" ID="ExplorerWindow1"
        Modal="true" Behaviors="Close,Move">
</telerik:RadWindow>
<script type="text/javascript">
function OpenFileExplorerDialog1() {
    var wnd = $find('<asp:Literal ID="ltrWindow" runat="server"></asp:Literal>');
    wnd.show();
}


//This function is called from a code declared on the Explorer.aspx page
function OnFileSelected1(fileSelected) {
    var textbox = document.getElementById('<asp:Literal ID="ltrTextBox" runat="server"></asp:Literal>');
    textbox.value = fileSelected;
}
</script>